@extends('layout.admin.index')
@section('content')
<style type="text/css">
  .content{
    float:left;
    margin-top:8px;
    width:400px;
  }
  .aaa{
    width:100px;
  }
  .reply{
      width:850px;
      float:right;
      margin-right:300px;
  }
  .reply_content{
      float:right;
  }
  .reply_title{
      float:right;
      margin-top:30px;
  }
</style>
<body>
<div class="panel admin-panel">
  <!-- 子标题显示 评论详情添加-->
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>{{ $title }}</strong></div>
  <div class="body-content">

    <!-- 评论详情添加开始-跳转执行添加路由 -->
    <form method="post" class="form-x" action="/admin/goods_comment/reply" enctype="multipart/form-data">  

    {{ csrf_field() }}
      <div class="form-group">
      </div>


      <!-- 用户账户 -->
      <div class="form-group">
        <div class="label">
          <label>用户账户：</label>
        </div>
        <div class="content">
          {{ $data['user_email'] }}
          <div class="tips"></div>
        </div>
      </div>

      <!-- 评论印象 -->
      <div class="form-group">
        <div class="label">
          <label>评论印象：</label>
        </div>
        <div class="content">
              @if($data['goods_comment_grade'] == 1) 
              <img src="/images/haoping.png" alt="" style="margin-bottom:3px"><font color="green">&nbsp好评</font> 
              @elseif($data['goods_comment_grade'] == 2)
               <img src="/images/zhongping.png" alt="" style="margin-bottom:3px"><font  color="orange">&nbsp中评</font>
              @else
               <img src="/images/chaping.png" alt="" style="margin-bottom:3px"><font  color="red">&nbsp差评</font>
              @endif
          <div class="tips"></div>
        </div>
      </div>
      <br>
      <!-- 评论图片 -->
      <div class="form-group">
        <div class="label">
          <label>评论图片：</label>
        </div>
        <div class="content" style="margin-top:-30px"> 
          @foreach($data['goods_comment_photo'] as $v)
          <img src="/images/admin/fris_pic/{{ $v }}" alt="" width="100px" height="100px">
          @endforeach
        </div>
      </div>  

      <!-- <div style="border:1px solid red;float:left" width="400" height="600"> -->
        <!-- 评论内容 -->
        <div style="margin-left:400px;color:#abc">{{ $data['goods_comment_content_time'] }}</div>
        <div class="form-group">
          <div class="label">
            <label>评论内容：</label>
          </div>
          <div class="content">

            <span id="aaa"  style="background:orange;border-radius:20px;">&nbsp&nbsp&nbsp{!! $data['goods_comment_content'] !!}&nbsp</span>
            <div class="tips"></div>
          </div>
        </div>
        <br>

        <!-- 追加评论 -->
        <div style="margin-left:400px;color:#abc">{{ $data['goods_comment_content_add_time'] }}</div>
        <div class="form-group">
          <div class="label">
            <label>追加评论：</label>
          </div>
          <div class="content">

            <span id="aaa"  style="background:green;border-radius:20px;">{!! $data['goods_comment_content_add'] !!}</span>
            <div class="tips"></div>
          </div>
        </div>

           <!-- 回复评论 -->
        <div style="margin-left:400px;color:#abc">{{ date('Y-m-d H:i:s',$data['goods_comment_reply_time']) }}</div>
        <div class="form-group">
          <div class="label">
            <label>回复评论：</label>
          </div>
          <div class="content">

            <span id="aaa"  style="background:green;border-radius:20px;">{!! $data['goods_comment_reply_content'] !!}</span>
            <div class="tips"></div>
          </div>
        </div>
        <br>   

 
             <br>

      <!-- 回复评论 -->
      <div style="margin-left:110px;color:#abc">*回复内容只可以回复一次，请注意</div>
      <div class="form-group">
        <div class="label">
          <label>回复评论：</label>
        </div>
        <div class="content" style="width:700px">
            <!-- 加载编辑器的容器 -->
            <textarea name="goods_comment_reply_content" id="container" cols="50" rows="60"></textarea>
          <div class="tips"></div>
        </div>
      </div>

    <!-- 评论id -->
    <input type="hidden" name="comment_id" value="{{ $data['comment_id'] }}">
    <!-- 回复时间 -->
    <input type="hidden" name="goods_comment_reply_time" value="{{ time() }}">




    <!-- 配置文件 -->
    <script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
    </script>




      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>

    </form>
    <!-- 链接添加结束 -->
  </div>
</div>
</body>
@endsection